import Cookies from 'js-cookie'

const TokenKey = 'QYBS_authorization_token'
const openId = 'QYBS_open_id'
const accountStatus = 'QYBS_status'
const venuesId = 'QYBS_venues_id'

// token
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

// open_id
export function getOpenId() {
  return Cookies.get(openId)
}

export function setOpenId(openid) {
  return Cookies.set(openId, openid)
}

export function removeOpenId() {
  return Cookies.remove(openId)
}

// accountStatus
export function getStatus() {
  return Cookies.get(accountStatus)
}

export function setStatus(status) {
  return Cookies.set(accountStatus, status)
}

export function removeStatus() {
  return Cookies.remove(accountStatus)
}

// venues_id
export function getVenuesId() {
  return Cookies.get(venuesId)
}

export function setVenuesId(venuesid) {
  return Cookies.set(venuesId, venuesid)
}

export function removeVenuesId() {
  return Cookies.remove(venuesId)
}
